package com.example.featuresdk.dao

import androidx.room.*

interface BasicDao<T> {

    @Insert(onConflict = OnConflictStrategy.REPLACE)
    suspend fun insert(vararg items: T)

    @Insert(onConflict = OnConflictStrategy.REPLACE)
    suspend fun insert(items: List<T>)

    @Delete
    suspend fun delete(item: T)

    @Update
    suspend fun update(item: T)
}